package books.ThinkingInJava.src.Chapter14;

public class TextClassLoading {
    public static void main(String[] arg) {
//        Gum gu = new Gum();
//        Gum gu2 = new Gum();
        try {
            Class c = Class.forName("Chapter14.Gum");
//            Class c2 = Class.forName("Gum");  必须提供包包名
        } catch (ClassNotFoundException cnfe) {
            cnfe.printStackTrace();
        }
    }
}

